package com.viphuli.dao.base;

import java.sql.SQLException;
import java.util.concurrent.Callable;

import com.j256.ormlite.misc.TransactionManager;
import com.offroader.orm.BaseDBHelper;

public class OrmBaseDao {

	protected Object openTransactionManager(BaseDBHelper helper, Callable<?> callble) throws SQLException {
		return TransactionManager.callInTransaction(helper.getConnectionSource(), callble);
	}
}
